package com.mimosa.common.system.department;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.mimosa.common.entity.BaseEntity;
import com.mimosa.util.config.YesNoType;

/**
 * 部门信息对象
 * 
 * @filename Department.java
 * @date 2012-2-29 下午2:23:05
 * @author ggeagle
 * 
 */
@Entity
@Table(name = "T_DEPARTMENT")
public class TDepartment extends BaseEntity {
	public static final String PROPERTY_PARENT_ID = "parentId";
	/**
	 * 部门名称
	 */
	@Column(nullable = false, length = 256)
	private String depName;
	/**
	 * 部门编码
	 */
	@Column(nullable = true, length = 256)
	private String depCode;

	public String getDepCode() {
		return depCode;
	}

	public void setDepCode(String depCode) {
		this.depCode = depCode;
	}

	/**
	 * 部门描述
	 */
	@Column(nullable = true, length = 2048)
	private String depDesc;
	/**
	 * 父部门的ID信息
	 */
	@Column(name = "parentId", nullable = true, length = 32)
	private String parentId;
	/**
	 * 部门经理ID
	 */
	@Column(nullable = true, length = 32)
	private String managerId;
	/**
	 * 部门经理名称
	 */
	@Column(nullable = true, length = 64)
	private String managerName;
	/**
	 * 是否还有子部门
	 */
	private String hasSubDep = YesNoType.N.name();
	/**
	 * 数据状态
	 */
	private String state = YesNoType.Y.name();

	/**
	 * @return the depName
	 */
	public java.lang.String getDepName() {
		return depName;
	}

	/**
	 * @param depName
	 *            the depName to set
	 */
	public void setDepName(java.lang.String depName) {
		this.depName = depName;
	}

	/**
	 * @return the depDesc
	 */
	public java.lang.String getDepDesc() {
		return depDesc;
	}

	/**
	 * @param depDesc
	 *            the depDesc to set
	 */
	public void setDepDesc(java.lang.String depDesc) {
		this.depDesc = depDesc;
	}

	/**
	 * @return the parentId
	 */
	public java.lang.String getParentId() {
		return parentId;
	}

	/**
	 * @param parentId
	 *            the parentId to set
	 */
	public void setParentId(java.lang.String parentId) {
		this.parentId = parentId;
	}

	public String getHasSubDep() {
		return hasSubDep;
	}

	public void setHasSubDep(String hasSubDep) {
		this.hasSubDep = hasSubDep;
	}

	public String getManagerId() {
		return managerId;
	}

	public void setManagerId(String managerId) {
		this.managerId = managerId;
	}

	public String getManagerName() {
		return managerName;
	}

	public void setManagerName(String managerName) {
		this.managerName = managerName;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
}